package com.eric.nioclient.view;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;

import com.eric.nioclient.R;

/**
 * Created by eric on 2017/11/17.
 */

public class LoadingDialog extends Dialog {

    public LoadingDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.progress_dialog);
    }

    public void showLoading(){
        this.show();
    }

    public void hideLoading(){
        this.cancel();
    }
}
